﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using Chowpoo.Sql;

namespace CourseSystem.Core.Entities
{
    [Table(Name = "DailyStat")]
    public class DailyStatInfo : IDetach
    {
        public DailyStatInfo()
        {
            Detach();
        }
        #region Model
        private int _id;
        private DateTime _statdate = DateTime.Now;
        private int _hits = 0;
        private int _iphits = 0;
        /// <summary>
        /// 
        /// </summary>
        [Column(IsDbGenerated = true, IsPrimaryKey = true, IsVersion = true)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public DateTime StatDate
        {
            set { _statdate = value; }
            get { return _statdate; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public int Hits
        {
            set { _hits = value; }
            get { return _hits; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public int IpHits
        {
            set { _iphits = value; }
            get { return _iphits; }
        }
        #endregion Model

        public void Detach()
        {

        }
    }
}
